package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.device.DeviceShareMapper;
import com.bbzn.device.client.dataobject.DeviceShare;
import com.bbzn.device.client.service.DeviceShareService;
@Service
public class DeviceShareServiceImpl implements DeviceShareService{

    @Resource
    private DeviceShareMapper deviceShareMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return deviceShareMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteDeviceShareSelective(DeviceShare record) {
        return deviceShareMapper.deleteDeviceShareSelective(record);
    }

    @Override
    public int insert(DeviceShare record) {
        return deviceShareMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(DeviceShare record) {
        return deviceShareMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(DeviceShare record) {
        return deviceShareMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(DeviceShare record) {
        return deviceShareMapper.insertSelective(record);
    }

    @Override
    public DeviceShare selectByPrimaryKey(Long id) {
        return deviceShareMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DeviceShare record) {
        return deviceShareMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DeviceShare record) {
        return deviceShareMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<DeviceShare> findByAll(DeviceShare deviceShare) {
        return deviceShareMapper.findByAll(deviceShare);
    }

    @Override
    public List<Long> findReceiveIdByImei(String imei) {
        return deviceShareMapper.findReceiveIdByImei(imei);
    }

    @Override
    public int updateBatch(List<DeviceShare> list) {
        return deviceShareMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<DeviceShare> list) {
        return deviceShareMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<DeviceShare> list) {
        return deviceShareMapper.batchInsert(list);
    }

}
